# safe_file_reading.py

def safe_read_file(file_path):
    try:
        with open(file_path, 'r') as file:
            content = file.read()
            print("文件内容：")
            print(content)
    except FileNotFoundError:
        print(f"错误：文件'{file_path}'不存在")
    except Exception as e:
        print(f"读取文件时发生错误：{e}")

# 测试
file_path = "non_existent_file.txt"
safe_read_file(file_path)